package bean10;

public class FruitTest {
    public static void main(String[] args) {
        Fruit f1 = new Apple();
        f1.setName("苹果");
        f1.setArea("昭通");
        f1.setPrice(5);
        System.out.println(f1);

        Fruit f2 = new Banana();
        f2.setName("香蕉");
        f2.setArea("广西");
        f2.setPrice(7);
        System.out.println(f2);


        Fruit f3=new Mango();
        f3.setName("芒果");
        f3.setArea("德宏");
        f3.setPrice(10);
        System.out.println(f3);


    }
}